package com.yu.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yu.common.to.mq.SeckillOrderTo;
import com.yu.common.utils.PageUtils;
import com.yu.gulimall.ware.entity.OrderEntity;
import com.yu.gulimall.ware.vo.*;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author yfy
 * @email HeJieLin@gulimall.com
 * @date 2024-06-16 21:42:52
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    public OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    public SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    public OrderEntity getOrderByOrderSn(String orderSn);

    public void closeOrder(OrderEntity orderEntity);

    public PayVo getOrderPay(String orderSn);

    public PageUtils queryPageWithItem(Map<String, Object> params);

    public String handlePayResult(PayAsyncVo asyncVo);

    public String asyncNotify(String notifyData);

    public void createSeckillOrder(SeckillOrderTo orderTo);
}

